﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;
using System.IO;
using KaoQin.Common;

namespace KaoQin.swipingcard.ConHelper
{
    public class ImagePathConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return FileHelper.GetcurrPath()+ value.ToString();
            
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return value.ToString().Replace(FileHelper.GetcurrPath() + "\\", "");
        }
    }
}
